-- GENERATED SPELL FOR [Slave Master Blackheart] --


function spell0_8283(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8283', 2276, 1)
end

function spell1_8283(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8283', 641, 1)
end

function Sorts_8283(pUnit, Event)
local choix_sorts_8283 = math.random(0, 1)
if choix_sorts_8283 == 0 then
pUnit:RegisterEvent('spell0_8283', 1, 1)
end
if choix_sorts_8283 == 1 then
pUnit:RegisterEvent('spell1_8283', 1, 1)
end
end

function mob8283_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8283', math.random(1500, 3000), 1)
end

function mob8283_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8283_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8283_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8283, 1, 'mob8283_Action')
RegisterUnitEvent(8283, 2, 'mob8283_Leave')
RegisterUnitEvent(8283, 3, 'mob8283_Kill')
RegisterUnitEvent(8283, 4, 'mob8283_Die')
